﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>易立德单点登录</title>
<link rel="shortcut icon" href="./favicon.ico" th:href="@{/favicon.ico}">
<link rel="stylesheet" href="./css/login/theme2/register.css" th:href="@{/css/login/theme2/register.css}">
</head>
<body>

	<div class='signup_container'>
		<h1 class='signup_title'>
			<samp th:text="${oauthClient != null and oauthClient.clientName != null ? oauthClient.clientName : '登录'}"></samp>
		</h1>
		<img src='images/people.png' th:src="@{/images/theme2/people.png}" id='admin' />
		<form onclick="this.disabled=false" onsubmit="return handleSubmit()" method="post" th:action="${#request.getQueryString() != null ? #request.getRequestURL() + '?' + #request.getQueryString() : #request.getRequestURL()}">
			<div id="signup_forms" class="signup_forms clearfix">
				<div class="form_row first_row">
					<label for="signup_email">请输入用户名</label>
					<div class='tip ok' th:classappend="${errorMsg} ? 'ok' : 'error'"></div>
					<input type="text" name="username" placeholder="请输入用户名" id="signup_name" data-required="required">
				</div>
				<div class="form_row">
					<label for="signup_password">请输入密码</label>
					<div class='tip ok' th:classappend="${errorMsg} ? 'ok' : 'error'"></div>
					<input type="password" name="password" placeholder="请输入密码" id="signup_password" data-required="required">
				</div>
			</div>
			<div class="username-error" th:text="${errorMsg}"></div>
			<div class="login-btn-set">
				<div class='rem'>记住我</div>
				<button class="button login-btn"></button>
			</div>
		</form>
		<p class='copyright'><a class="text-login" th:href="${#request.contextPath}+'/password/new'" target="_blank">修改/忘记密码？</a></p>
	</div>

</body>
<script src="./js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
<script type="text/javascript">
	$(function() {

		$('.rem').click(function() {
			$(this).toggleClass('selected');
		})

	})
</script>

</html>